package com.kingyun.gpsinspection.purificationservice.services.activitiservice.ext.behavior;

import com.kingyun.gpsinspection.purificationservice.services.activitiservice.ext.Meditor.MeditorFactory;
import org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior;
import org.activiti.engine.impl.bpmn.behavior.SequentialMultiInstanceBehavior;
import org.activiti.engine.impl.pvm.delegate.ActivityExecution;
import org.activiti.engine.impl.pvm.process.ActivityImpl;

/**
 * 顺序多实例行为类
 */
public class CustomerSequeMultiInstanceActivityBehavior extends SequentialMultiInstanceBehavior {

    public CustomerSequeMultiInstanceActivityBehavior(ActivityImpl activity, AbstractBpmnActivityBehavior innerActivityBehavior) {
        super(activity, innerActivityBehavior);
    }

    @Override
    public void execute(ActivityExecution execution) throws Exception {
        MeditorFactory.getInstance().handleMulti(execution);
        super.execute(execution);
    }


}
